﻿using Microsoft.AspNetCore.Mvc.RazorPages;

namespace MyWebApp.Pages;

public class Test : PageModel
{
  private readonly ILogger<Test> _logger;
  
  public Test(ILogger<Test> logger)
  {
    _logger = logger;
  }
  
  public void OnGet()
  {
    _logger.LogTrace("Trace");
    _logger.LogDebug("Debug");
    _logger.LogInformation("Information");
    _logger.LogWarning("Warning");
    _logger.LogError("Error");
    _logger.LogCritical("Critical");
  }
}